package oo;

/**
 * @author mubei
 * @date 2021/12/20
 * @description
 */
public class Test {

    public static void main(String[] args) {
        Person person = new Person();
        person.setName("ah");
        person.setAge(18);
        Person ah = person;

        System.out.println(ah.hashCode());
        System.out.println(person.hashCode());
        ah = null;


        System.out.println(person.hashCode());
        System.out.println(ah.hashCode());
    }
    /*
    *
    97420
    97420
    97420
    Exception in thread "main" java.lang.NullPointerException
        at oo.Test.main(Test.java:22)
    * */
}
